package com.livelab.model;

import com.livelab.util.MySQLDatabaseUtil;

/**
 * Abstract method 
 * 
 * @author Dakota
 */

public abstract class Login {

    private String username;
    private String password;
    public static MySQLDatabaseUtil db;
    protected boolean loggedIn;
    
    
    /** Creates a new instance of Login */
    public Login() {
        loggedIn = false;
        db = new MySQLDatabaseUtil("localhost/javalivelab9e", "agsuser", "agsuser");
    }
    
    /*
     * GETTERS
     */
    
    public boolean getIsntLoggedIn(){
        return !loggedIn;
    }
      
     public boolean getLoggedIn(){
        return loggedIn;
    }
    
    public String getPassword(){
        return password;
    }
    
    public String getUsername(){
        return username;
    }
    
    public void setLoggedIn(boolean loggedIn){
        this.loggedIn = loggedIn;
    }
    
    /*
     * SETTERS
     */
    
    public void setPassword(String password){
        this.password = password;
    }
    
    public void setUsername(String username){
        this.username = username;
    }
    
    
    public abstract void login();
}
